package com.changcheng.project.applist.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.changcheng.project.applist.mapper.AAppfileListMapper;
import com.changcheng.project.applist.domain.AAppfileList;
import com.changcheng.project.applist.service.IAAppfileListService;
import com.changcheng.common.utils.text.Convert;

/**
 * APP文件列表Service业务层处理
 * 
 * @author dazhi
 * @date 2020-10-30
 */
@Service
public class AAppfileListServiceImpl implements IAAppfileListService 
{
    @Autowired
    private AAppfileListMapper aAppfileListMapper;

    /**
     * 查询APP文件列表
     * 
     * @param id APP文件列表ID
     * @return APP文件列表
     */
    @Override
    public AAppfileList selectAAppfileListById(Long id)
    {
        return aAppfileListMapper.selectAAppfileListById(id);
    }

    /**
     * 查询APP文件列表列表
     * 
     * @param aAppfileList APP文件列表
     * @return APP文件列表
     */
    @Override
    public List<AAppfileList> selectAAppfileListList(AAppfileList aAppfileList)
    {
        return aAppfileListMapper.selectAAppfileListList(aAppfileList);
    }

    /**
     * 新增APP文件列表
     * 
     * @param aAppfileList APP文件列表
     * @return 结果
     */
    @Override
    public int insertAAppfileList(AAppfileList aAppfileList)
    {
        return aAppfileListMapper.insertAAppfileList(aAppfileList);
    }

    /**
     * 修改APP文件列表
     * 
     * @param aAppfileList APP文件列表
     * @return 结果
     */
    @Override
    public int updateAAppfileList(AAppfileList aAppfileList)
    {
        return aAppfileListMapper.updateAAppfileList(aAppfileList);
    }

    /**
     * 删除APP文件列表对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAAppfileListByIds(String ids)
    {
        return aAppfileListMapper.deleteAAppfileListByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除APP文件列表信息
     * 
     * @param id APP文件列表ID
     * @return 结果
     */
    @Override
    public int deleteAAppfileListById(Long id)
    {
        return aAppfileListMapper.deleteAAppfileListById(id);
    }
}
